package com.gxan.dao;

import com.gxan.pojo.Recruitment;

import java.sql.SQLException;
import java.util.List;

public interface RecruitmentDao {
    /**
     * 添加职务发布
     * @param recruitment 前端传递来，AddRecruitmentServlet处理过的
     * @return int 根据返回值判断是否成功插入一条数据  >0成功 <=0失败
     */
    int  addRecruitment(Recruitment recruitment) throws SQLException;

    /**
     * 删除职务发布
     * @param id
     * @return
     * @throws SQLException
     */
    int delRecruitmentById(String id) throws SQLException;

    /**
     * 修改职务发布
     * @param recruitment
     * @return
     */
    int updateRecruitment(Recruitment recruitment) throws SQLException;

    /**
     * 按照职位编码搜索-查询总记录数
     * @param recruitment
     * @return
     */
    Integer countRecruitment(Recruitment recruitment) throws SQLException;

    /**
     * 查询所有员工信息 和按职位名称||职位分类||登记日期-截止日期查询说有员工
     * @param param01
     * @param param02
     * @param recruitment
     * @return
     * @throws SQLException
     */
    List<Recruitment> queryRecruitmentList(Integer param01, Integer param02, Recruitment recruitment) throws SQLException;

}
